package cn.ainit.sys.dz;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import cn.ainit.sys.dz.entity.SysDzColumns;
import cn.ainit.sys.dz.entity.SysDzReturnJson;
import cn.ainit.sys.dz.entity.SysDzSource;
import cn.ainit.sys.framework.entity.SysColumns;
import cn.ainit.sys.query.datastore.DataStore;
import cn.ainit.sys.query.entity.QueryJson;

@Service
public class SysDzServiceImpl implements SysDzService{
	SysDzDao sysDzDao;
	
	@Resource
	public void setSysDzDao(SysDzDao sysDzDao) {
		this.sysDzDao = sysDzDao;
	}
	
	@Override
	public SysDzSource loadDzSource(String dzId) throws Exception {
		return sysDzDao.loadDzSource(dzId);
	}
	
	@Override
	public QueryJson queryDzSource(String sqlText, String showPk,
			String showName, int page, int rows) throws Exception {
		return sysDzDao.queryDzSource(sqlText,showPk,showName,page,rows);
	}
	
	@Override
	public List queryDzSourceAll(String sqlText, String showPk,
			String showName, int i, int j) throws Exception {
		return sysDzDao.queryDzSourceAll(sqlText,showPk,showName,i,j);
	}
	
	@Override
	public List<SysDzColumns> colList(String dzId, String string)
			throws Exception {
		return sysDzDao.colList(dzId, string);
	}
	
	@Override
	public SysDzReturnJson queryRowsBySqlPagination(String sql, int page,
			int rows) throws Exception {
		return sysDzDao.queryRowsBySqlPagination(sql,page,rows);
	}
	@Override
	public DataStore getDataStore(String dsId) throws Exception {
		return sysDzDao.getDataStore(dsId);
	}
	
	@Override
	public QueryJson loadEditData(String sql, int page, int rows)
			throws Exception {
		return  sysDzDao.loadEditData(sql, page, rows);
	}
	
	@Override
	public List queryOldRowsBySql(String sql) throws Exception {
		return sysDzDao.queryOldRowsBySql(sql);
	}
	
	@Override
	public SysColumns loadSysColumns(String dsid, String coluname)
			throws Exception {
		return sysDzDao.loadSysColumns(dsid, coluname);
	}
	
	@Override
	public List loadDzColumnNames(String mulDsid) throws Exception {
		return sysDzDao.loadDzColumnNames(mulDsid);
	}
	
	@Override
	public QueryJson queryDZOther(String otherSql,int page, int rows) throws Exception {
		return sysDzDao.queryDZOther(otherSql,page,rows);
	}

	@Override
	public String getBjDzCodeId(String comparisonId) throws Exception {
		return sysDzDao.getBjDzCodeId(comparisonId);
	}
	
	@Override
	public String getFxDzCodeId(String comparisonId) throws Exception {
		return sysDzDao.getFxDzCodeId(comparisonId);
	}
	
	
	@Override
	public List<SysColumns> getMulConl(String dsId) throws Exception {
		return sysDzDao.getMulConl(dsId);
	}
	
	@Override
	public List loadDzG(String dzId, String clnName) throws Exception {
		return sysDzDao.loadDzG(dzId,clnName);
	}

	@Override
	public List queryDzSourceNoPage(String sqlText, String showPk,
			String showName, String filterSql) throws Exception {
		return sysDzDao.queryDzSourceNoPage(sqlText, showPk, showName, filterSql);
	}

	@Override
	public String getCwDzCodeId(String comparisonId) throws Exception {
		return sysDzDao.getCwDzCodeId(comparisonId);
	}

	@Override
	public String loadDzDataRight(String dzId, String dsId,HttpSession session,String param) throws Exception {
		return sysDzDao.loadDzDataRight(dzId, dsId, session, param);
	}

	@Override
	public String loadDzAnotherPast(String dzId, String dsId) throws Exception {
		// TODO Auto-generated method stub
		return sysDzDao.loadDzAnotherPast(dzId, dsId);
	}
	
	
}
